home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / spalette.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-31  |  2.2 KB  |  79 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.                           spalette.h  -  description
  9.                              -------------------
  10.     begin                : Wed Apr 25 2001
  11.     copyright            : (C) 2001 by Franz Schmid
  12.     email                : Franz.Schmid@altmuehlnet.de
  13.  ***************************************************************************/
  14.  
  15. /***************************************************************************
  16.  *                                                                         *
  17.  *   This program is free software; you can redistribute it and/or modify  *
  18.  *   it under the terms of the GNU General Public License as published by  *
  19.  *   the Free Software Foundation; either version 2 of the License, or     *
  20.  *   (at your option) any later version.                                   *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23.  
  24. #ifndef SPALETTE_H
  25. #define SPALETTE_H
  26.  
  27. #include <QComboBox>
  28. #include <QLayout>
  29. #include "scribusapi.h"
  30. class ScribusDoc;
  31.  
  32. /**
  33.   *@author Franz Schmid
  34.   */
  35.  
  36. class SCRIBUS_API ParaStyleComboBox : public QComboBox
  37. {
  38.     Q_OBJECT
  39.  
  40. public: 
  41.     ParaStyleComboBox(QWidget* parent);
  42.     ~ParaStyleComboBox() {};
  43.     
  44.     ScribusDoc *currentDoc;
  45.     
  46. public slots:
  47.     void setDoc(ScribusDoc *newCurrentDoc);
  48.     void setFormat(QString name);
  49.     void updateFormatList();
  50.     void selFormat(int e);
  51.     
  52. signals:
  53.     void newStyle(const QString&);
  54.     void editStyle();
  55. };
  56.  
  57. class SCRIBUS_API CharStyleComboBox : public QComboBox
  58. {
  59.     Q_OBJECT
  60.  
  61. public: 
  62.     CharStyleComboBox(QWidget* parent);
  63.     ~CharStyleComboBox() {};
  64.     
  65.     ScribusDoc *currentDoc;
  66.     
  67. public slots:
  68.     void setDoc(ScribusDoc *newCurrentDoc);
  69.     void setFormat(QString name);
  70.     void updateFormatList();
  71.     void selFormat(int e);
  72.     
  73. signals:
  74.     void newStyle(const QString&);
  75.     void editCharStyle();
  76. };
  77.  
  78. #endif
  79.